#ifndef __MESSAGE_QUEUE_H__
#define __MESSAGE_QUEUE_H__

#include "cocos2d.h"
#include <queue>
#include "message/BaseMessage.h"

using namespace std;

class MessageQueue
{
public:
	static MessageQueue* getInstance();

	bool push(void* mess);
	void* pop();

private:
	void init();

private:
	queue<void*>* m_queue;
};

#endif // __MESSAGE_QUEUE_H__